/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ditt.outils;

/**
 *
 * @author attobra
 */
public class Cercle extends Figure{
    private float rayon;

    public Cercle(float rayon, String couleur) {
        super(couleur);
        this.rayon = rayon;
    }

    public float getSurface(){
        return (float)(rayon*Math.PI*2);
    }

    public float getRayon() {
        return rayon;
    }

    public void setRayon(float rayon) {
        this.rayon = rayon;
    }
    
}
